//
//  GQHBaseController.h
//  GQHKit
//
//  Created by GuanQinghao on 24/09/2017.
//  Copyright © 2017 GuanQinghao. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface GQHBaseController : UIViewController

/// 导航条
@property (nonatomic, strong) UIView * _Nonnull qh_navigationBar;
/// 导航左键
@property (nonatomic, strong) UIButton * _Nonnull qh_leftButton;
/// 导航标题栏
@property (nonatomic, strong) UILabel * _Nonnull qh_titleLabel;
/// 导航右键
@property (nonatomic, strong) UIButton * _Nonnull qh_rightButton;

/// 加载指示视图
@property (nonatomic, strong) UIActivityIndicatorView * _Nullable qh_loadingView;
/// 加载错误视图
@property (nonatomic, strong) UIView * _Nullable qh_errorView;

/// 导航栏左按钮功能
- (IBAction)qh_clickedLeftButton:(UIButton *_Nullable)sender;
/// 导航栏右按钮功能
- (IBAction)qh_clickedRightButton:(UIButton *_Nullable)sender;

/// 添加加载指示视图
- (void)qh_loadLoadingView;
/// 移除加载指示视图
- (void)qh_removedLoadingView;

/// 添加加载错误视图
- (void)qh_loadErrorView;
/// 移除加载错误视图
- (void)qh_removedErrorView;

/// 检查用户访问权限
- (BOOL)qh_checkUserAccessPermission;


@end
